package com.serkol.ams.module.sys.valid;

import io.swagger.v3.oas.annotations.media.SchemaProperty;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
@SchemaProperty(name = "LoginParams")
public class LoginParams {
    @NotEmpty
    @Min(4)
    @SchemaProperty(name = "username")
    private String username;
    @NotEmpty
    @Min(6)
    @SchemaProperty(name = "password")
    private String password;
}
